package com.taokatao.cardmee.business.profile;

import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;

import com.taokatao.cardmee.ActivityCollector;
import com.taokatao.cardmee.App;
import com.taokatao.cardmee.BaseActivity;
import com.taokatao.cardmee.BusEvent;
import com.taokatao.cardmee.C;
import com.taokatao.cardmee.R;
import com.taokatao.cardmee.Utils;
import com.taokatao.cardmee.api.ApiManager;
import com.taokatao.cardmee.api.RespInfo;
import com.taokatao.cardmee.api.RespWrapper;
import com.taokatao.cardmee.api.SubscriberAdapter;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;


public class ProfileReceiveCompleteActivity extends BaseActivity implements View.OnClickListener {
    @BindView(R.id.t_submit) TextView tSubmit;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_profile_receive_complete);
        ButterKnife.bind(this);
    }

    @Override
    @OnClick({R.id.t_submit})
    public void onClick(View v) {
        if (v == tSubmit) {
            finish();
        }
    }

    @Override
    public void finish() {
        // 回到首页的卡包界面
        Utils.postMainThreadBusEvent(BusEvent.WEB_RETURN_TO_HOME_CARD);
        // 连带关闭输入密钥的活动
        ActivityCollector.finishActivity(ProfileReceiveActivity.class);
        ActivityCollector.finishActivity(ProfileReceiveInfoActivity.class);

        super.finish();
    }
}
